package com.hunt.model.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author ww
 * @className
 * @description
 * @date 2020/8/25
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class HqStockData implements Comparable<HqStockData>{

    private long _id;
    //消息ID 4098:股票数据 4097:指数
    private String msgId;
    
    //时间
    private String dateTime;

    //代码
    private String code;
    
    //昨天收盘价*10000
    private float preClose = 0;
    
    //开盘价*10000
    private float open = 0;
    
    //最新价*10000
    private float newPrice = 0;
    
    //最高价*10000
    private float high = 0;
    
    //最低价*10000
    private float low = 0;
    
    //均价*10000
    private float avgPrice = 0;
    
    //股数（单位：个股）
    private long vol = 0l;
    
    //成交额*100
    private long money = 0l;
    
    //成交笔数
    private long numTrades = 0l;
    
    //涨跌幅
    private String hlPercent = "--";

    //涨跌额
    private String change = "--";
    
    //买1数量(单位:个)
    private long buyVol1 = 0l;
    //买2数量(单位:个)
    private long buyVol2 = 0l;
    //买3数量(单位:个)
    private long buyVol3 = 0l;
    //买4数量(单位:个)
    private long buyVol4 = 0l;
    //买5数量(单位:个)
    private long buyVol5 = 0l;
    
    
    //买1金额*10000
    private double buyPrice1 = 0;
    //买2金额*10000
    private double buyPrice2 = 0;
    //买3金额*10000
    private double buyPrice3 = 0;
    //买4金额*10000
    private double buyPrice4 = 0;
    //买5金额*10000
    private double buyPrice5 = 0;
    
    
    //卖1数量(单位:个)
    private long sellVol1 = 0l;
    //卖2数量(单位:个)
    private long sellVol2 = 0l;
    //卖3数量(单位:个)
    private long sellVol3 = 0l;
    //卖4数量(单位:个)
    private long sellVol4 = 0l;
    //卖5数量(单位:个)
    private long sellVol5 = 0l;
    
    //卖1金额*10000
    private double sellPrice1 = 0;
    //卖2金额*10000
    private double sellPrice2 = 0;
    //卖3金额*10000
    private double sellPrice3 = 0;
    //卖4金额*10000
    private double sellPrice4 = 0;
    //卖5金额*10000
    private double sellPrice5 = 0;

    private String bs;
    private String shortDate;



    @Override
    public int compareTo(HqStockData o) {
        return (int) (_id - o.get_id());
    }
}
